<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>首页</h1>
</body>
</html>

<!-- Cannot use import statement outside a module  在模块外不能使用import -->
<!-- <script src="./js/index.js" ></script> -->

<!--type="module"告诉浏览器 我们引入的index.js文件是一个模块  -->
<script src="./js/index.js" type="module"></script>
